<template>
  <page-body>
    <view class="page">
      <view class="flex align-stretch benben-position-layout flex myMoney_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex align-center justify-between flex-sub myMoney_fd0_0'>
          <view class='flex align-center myMoney_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
            <text class='fu-iconfont2  myMoney_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex align-center'>
            <text class='myMoney_fd0_0_c1_c0'>我的钱包</text>
          </view>
          <view class='flex align-center justify-end myMoney_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="navigateTo"
            :data-url="`/pages/qbgl/bindAccount/bindAccount`">
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>

      <view class="flex flex-direction align-stretch benben-flex-layout myMoney_flex_1">
        <view class='flex align-center justify-between'>
          <view class='flex flex-direction flex-wrap align-center flex-sub'>
            <view class='flex flex-wrap align-center myMoney_fd1_0_c0_c0'>
              <text class='myMoney_fd1_0_c0_c0_c0'>我的平台币</text>
              <text class='fu-iconfont2  myMoney_fd1_0_c0_c0_c1' @tap.stop="popupShow1701921205378=true">&#xE600;</text>
            </view>
            <text class=' myMoney_fd1_0_c0_c1'>
              <text class=' myMoney_price1_fd1_0_c0_c1'>{{ Message.fadou   | frontPrice }}</text>
              <text class=' myMoney_price1_fd1_0_c0_c1'>{{ Message.fadou | laterPrice }}</text>
            </text>
            <view class='flex flex-wrap align-center myMoney_fd1_0_c0_c2' @tap.stop="handleJumpDiy"
              data-type="navigateTo" :data-url="`/pages/qbgl/exchange/exchange`">
              <image class='myMoney_fd1_0_c0_c2_c0' mode="aspectFit" :src='STATIC_URL+"151.png"'></image>
              <text>兑换</text>
            </view>
          </view>
          <view class='flex flex-direction flex-wrap align-center flex-sub myMoney_fd1_0_c1' @tap.stop="handleJumpDiy"
            data-type="navigateTo" :data-url="`/pages/qbgl/myMoneyAll/myMoneyAll`">
            <view class='flex flex-wrap align-center myMoney_fd1_0_c1_c0'>
              <text class='myMoney_fd1_0_c1_c0_c0'>我的余额（元）</text>
            </view>
            <text class=' myMoney_fd1_0_c1_c1'>
              <text class=' myMoney_price1_fd1_0_c0_c1'>{{ Message.user_money | frontPrice }}</text>
              <text class=' myMoney_price1_fd1_0_c0_c1'>{{ Message.user_money | laterPrice }}</text>
            </text>
            <view class='flex flex-wrap align-center myMoney_fd1_0_c1_c2'>
            </view>
          </view>
        </view>
        <view class='flex flex-wrap align-center justify-between myMoney_fd1_1'>
          <button class='myMoney_fd1_1_c0' @tap.stop="handleJumpDiy" data-type="navigateTo"
            :data-url="`/pages/qbgl/recharge/recharge`">充值</button>
        </view>
      </view>


      <benben-popup v-model="popupShow1701921205378" :mask="true" :mask-close-able="true" mode='center'>
        <!---flex布局flex布局开始-->
        <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout myMoney_flex_2">
          <view class='flex flex-direction flex-wrap align-stretch myMoney_fd2_0'>
            <text class='myMoney_fd2_0_c0'>{{dataDetails.name}}</text>

            <scroll-view class='myMoney_fd2_0_c1' :scroll-y='true'>
              <view class='flex benben-scroll flex align-center'>
                <jyf-parser class='myMoney_fd2_0_c1_c0' :html="dataDetails.content | richTextFormat">
                </jyf-parser>
              </view>
            </scroll-view>

          </view>
          <view class='flex flex-wrap align-center justify-center myMoney_fd2_1'>
            <image class='myMoney_fd2_1_c0' mode="aspectFit" :src='STATIC_URL+"101.png"'
              @tap.stop="popupShow1701921205378=false"></image>
          </view>
        </view>

        <!---flex布局flex布局结束-->

      </benben-popup>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout myMoney_flex_3">
        <view class='flex flex-wrap align-center justify-between myMoney_fd3_0'>
          <text class='myMoney_fd3_0_c0'>平台币明细</text>
          <!-- <text class='myMoney_fd3_0_c1' @tap.stop="handleJumpDiy" data-type="navigateTo"
            :data-url="`/pages/qbgl/balanceDetail/balanceDetail`">查看全部</text> -->
        </view>
        <view class='flex flex-direction flex-wrap align-stretch justify-between myMoney_fd3_1'>
          <template v-for='(item,key0) in dataList'>
            <view class='flex flex-wrap align-center myMoney_fd3_1_c0' :key='key0'>
              <view class='flex flex-wrap align-center flex-sub myMoney_fd3_1_c0_c0'>
                <view class='flex flex-direction flex-wrap align-stretch flex-sub'>
                  <text class='myMoney_fd3_1_c0_c0_c0_c0'>{{item.type_name}}</text>
                  <text class='myMoney_fd3_1_c0_c0_c0_c1'>{{item.create_time}}</text>
                </view>
                <view class='flex flex-wrap align-center myMoney_fd3_1_c0_c0_c1'>
                  <text class='myMoney_fd3_1_c0_c0_c1_c0'
                    :class="item.change_type==1 ? 'active' : ''">{{item.fadou}}</text>
                  <!-- <text class=' myMoney_fd3_1_c0_c0_c1_c1'>
                    <text class=' myMoney_price1_fd3_1_c0_c0_c1_c1'>{{ Message.withdrawal_money | frontPrice }}</text>
                    <text class=' myMoney_price1_fd3_1_c0_c0_c1_c1'>{{ Message.withdrawal_money | laterPrice }}</text>
                  </text> -->
                </view>
              </view>
            </view>
          </template>
          <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
            :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
        </view>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </page-body>
</template>
<script>
  import pagingList from '@/common/mixin/paging_list.js';
  import {
    validate
  } from '@/common/utils/validate.js'

  export default {
    components: {},
    mixins: [pagingList],

    data() {
      return {
        "popupShow1701921205378": false,
        "minixPagingListsApi": "",
        "pageingListApiMethod": "",
        "allowOnloadGetList": false,
        "dataList": [],
        "Message": {
          "aid": "",
          "user_money": "",
          "freeze_money": "",
          "total_consumption_money": "",
          "total_consumption_virtual_money": "",
          "total_revenue_money": "",
          "total_revenue_virtual_money": "",
          "empirical": "",
          "score": "",
          "count_score": "",
          "commission": "",
          "total_order_commission_money": "",
          "withdrawal_money": "",
          "share_money": "",
          "discounts_money": "",
          "create_time": "",
          "user_id": ""
        },
        "dataDetails": {
          "aid": "",
          "name": "",
          "thumb_img": "",
          "content": "",
          "introduce": ""
        }
      };
    },
    computed: {

    },
    watch: {},
    onLoad(options) {
      this.getMessageFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {
      this.getListFunc()
      this.getMoneyFunc()
    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //钱包-余额明细
      getListFunc() {
        this.minixPagingListsApi = global.apiUrls.post65bc85e543d2c;
        this.pageingListApiMethod = 'get';
        this.allowOnloadGetList = false;
        this.pagingListPostDataContent = {}
        this.listData = [];
        this.dataList = this.listData;
        this.pagingListToggle();

      },
      //钱包-钱包主页
      async getMoneyFunc() {
        //请求方法
        //数据验证

        let dataMessage = await this.$api.get(global.apiUrls.post5c78c4772da97, {

        });

        if (dataMessage.data.code != 1) {
          this.$message.info(dataMessage.data.msg);
          return
        }
        let infoMessage = dataMessage.data;
        this.Message = infoMessage.data

      },
      //系统文章--获取系统单页内容
      async getMessageFunc() {
        //请求方法
        //数据验证

        let datadataDetails = await this.$api.get(global.apiUrls.post641568f1b6f87, {
          column_id: '22'
        });

        if (datadataDetails.data.code != 1) {
          this.$message.info(datadataDetails.data.msg);
          return
        }
        let infodataDetails = datadataDetails.data;
        this.dataDetails = infodataDetails.data

      },
      pagingListPostData() {
        return this.pagingListPostDataContent
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: url(image-path('36.png')) no-repeat;
    background-size: 100% auto;
  }

  .myMoney_flex_0 {
    background: url(image-path('36.png')) no-repeat;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .myMoney_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 500;
    color: #fff;
  }

  .myMoney_fd0_0_c0_c0 {
    font-size: 32rpx;
    font-weight: 500;
    color: #fff;
  }

  .myMoney_fd0_0_c0 {
    width: 180rpx;
  }

  .myMoney_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
    line-height: 88rpx;
  }

  .myMoney_flex_1 {
    background: #FFFFFF;
    margin: 51rpx 32rpx 0rpx 32rpx;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    padding: 42rpx 0rpx 32rpx 0rpx;
  }

  .myMoney_fd1_1_c0 {
    background: var(--benbenbgColor2);
    border-radius: 80rpx 80rpx 80rpx 80rpx;
    font-size: 28rpx;
    color: var(--benbenFontColor3);
    width: 240rpx;
    height: 66rpx;
    line-height: 66rpx;
  }

  .myMoney_fd1_1 {
    margin: 40rpx auto 0rpx auto;
    padding: 15rpx auto 16rpx auto;
    border-radius: 0rpx 0rpx 16rpx 16rpx;
  }

  .myMoney_fd1_0_c1_c2 {
    font-size: 24rpx;
    color: var(--benbenFontColor6);
    margin: 12rpx 0rpx 0rpx 0rpx;
    height: 40rpx;
  }

  .myMoney_fd1_0_c1_c1 {
    color: #ff5536;
    font-weight: 600;
  }

  .myMoney_fd1_0_c1_c0_c0 {
    color: #999999;
    font-size: 24rpx;
    font-weight: 400;
    line-height: 33rpx;
    margin: 0rpx 0rpx 32rpx 0rpx;
  }

  .myMoney_fd1_0_c1_c0 {
    margin: 20rpx 0rpx 0rpx 0rpx;
  }

  .myMoney_fd1_0_c1 {
    border-left: 1px solid rgba(238, 238, 238, 1);
    padding: 0rpx 10rpx 0rpx 10rpx;
  }

  .myMoney_fd1_0_c0_c2_c0 {
    width: 28rpx;
    height: 28rpx;
    margin: 0rpx 12rpx 0rpx 0rpx;
  }

  .myMoney_fd1_0_c0_c2 {
    font-size: 24rpx;
    color: var(--benbenFontColor6);
    margin: 12rpx 0rpx 0rpx 0rpx;
  }

  .myMoney_price1_fd1_0_c0_c1 {
    font-size: 48rpx;
    color: var(--benbenFontColor5);
    font-weight: 600;
  }

  .myMoney_fd1_0_c0_c1 {
    color: rgba(253, 81, 61, 1);
    font-weight: 600;
  }

  .myMoney_fd1_0_c0_c0_c1 {
    color: rgba(153, 153, 153, 1);
    font-size: 28rpx;
    margin: 0rpx 0rpx 0rpx 24rpx;
  }

  .myMoney_fd1_0_c0_c0_c0 {
    color: #999999;
    font-size: 24rpx;
    font-weight: 400;
    line-height: 33rpx;
  }

  .myMoney_fd1_0_c0_c0 {
    margin: 20rpx 0rpx 32rpx 0rpx;
  }

  .myMoney_flex_2 {
    width: 540rpx;
  }

  .myMoney_fd2_1_c0 {
    width: 56rpx;
    height: 56rpx;
    border-radius: 28rpx 28rpx 28rpx 28rpx;
  }

  .myMoney_fd2_1 {
    margin: 48rpx 0rpx 0rpx 0rpx;
  }

  ::v-deep .myMoney_fd2_0_c1_c0 {
    width: 100%;
  }

  .myMoney_fd2_0_c1 {
    touch-action: none;
    height: 30vh;
  }

  .myMoney_fd2_0_c0 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 500;
    line-height: 45rpx;
    text-align: center;
    margin: 0rpx 0rpx 24rpx 0rpx;
  }

  .myMoney_fd2_0 {
    background: #FFFFFF;
    border-radius: 24rpx 24rpx 24rpx 24rpx;
    padding: 28rpx 32rpx 41rpx 32rpx;
  }

  .myMoney_flex_3 {
    background: transparent;
    background-size: 100% auto !important;
    padding: 20rpx 0rpx 0rpx 0rpx;
  }

  .myMoney_price1_fd3_1_c0_c0_c1_c1 {
    font-size: 32rpx;
    color: rgba(245, 44, 85, 1);
    font-weight: 500;
  }

  .myMoney_fd3_1_c0_c0_c1_c1 {
    color: #ff5536;
    font-weight: 600;
  }

  .myMoney_fd3_1_c0_c0_c1_c0 {
    font-size: 32rpx;
    font-weight: 500;
    color: #333;
    margin: 0rpx 5rpx 0rpx 0rpx;

    &.active {
      color: rgba(245, 44, 85, 1);
    }
  }

  .myMoney_fd3_1_c0_c0_c1 {
    color: rgba(250, 32, 51, 1);
    font-weight: 500;
    font-size: 32rpx;
  }

  .myMoney_fd3_1_c0_c0_c0_c1 {
    font-size: 24rpx;
    font-weight: 400;
    color: #999999;
    margin: 16rpx 0rpx 0rpx 0rpx;
  }

  .myMoney_fd3_1_c0_c0_c0_c0 {
    font-size: 28rpx;
    font-weight: 400;
    color: #333333;
    padding: 0rpx 24rpx 0rpx 0rpx;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  .myMoney_fd3_1_c0_c0 {
    padding: 0rpx 0rpx 24rpx 0rpx;
  }

  .myMoney_fd3_1_c0 {
    border-bottom: 1px solid #eee;
    margin: 28rpx 0rpx 0rpx 0rpx;
  }

  .myMoney_fd3_1 {
    background: #FFFFFF;
    background-size: 100% auto !important;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    padding: 0rpx 32rpx 0rpx 32rpx;
    margin: 12rpx 32rpx 12rpx 32rpx;
  }

  .myMoney_fd3_0_c1 {
    line-height: 40rpx;
    font-size: 28rpx;
    font-weight: 500;
    color: #999999;
  }

  .myMoney_fd3_0_c0 {
    line-height: 45rpx;
    font-size: 32rpx;
    font-weight: 500;
    color: #333333;
  }

  .myMoney_fd3_0 {
    padding: 12rpx 30rpx 12rpx 34rpx;
  }
</style>
